Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple patches to lfmcmc #34

Merged
merged 12 commits into from
Nov 25, 2024
Merged

Multiple patches to lfmcmc #34

merged 12 commits into from
Nov 25, 2024

Conversation

gvegayon
Copy link
Member

@gvegayon gvegayon commented Nov 22, 2024

This fixes a couple of bugs. The main one: the vector containing the sampled parameters wrongly contained the first few sampled statistics. We were able to catch this with smaller samples (e.g., 10) where the differences in magnitude were more evident. In addition, it adds a couple of methods for extracting data from the LFMCMC class.

This also includes the example I wrote for @kkhader.

@gvegayon gvegayon marked this pull request as ready for review November 22, 2024 23:00
@gvegayon gvegayon requested a review from apulsipher November 22, 2024 23:00
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 96.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.00%. Comparing base (d177940) to head (310652d).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
include/epiworld/model-meat.hpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #34      +/-   ##
==========================================
+ Coverage   83.96%   84.00%   +0.03%     
==========================================
  Files          42       42              
  Lines        2763     2769       +6     
==========================================
+ Hits         2320     2326       +6     
  Misses        443      443              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@apulsipher apulsipher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What you have here looks good, my only feedback is to add tests for the new burnin feature. I'm happy to do this, if you'd like.

Copy link
Contributor

@apulsipher apulsipher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but I don't understand the Codacy notice or if we should be worried about it

@apulsipher apulsipher merged commit bb8d6e8 into master Nov 25, 2024
16 of 17 checks passed
@apulsipher apulsipher deleted the lfmcmc-updates-nov2024 branch November 25, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants